package com.csw02;

import com.util.JDBCTest;

import java.sql.ResultSet;

public class JDBCTestTest {
    public static void main(String[] args) throws Exception{
        String sql="select * from score where id=? and score=?";
        ResultSet rs = JDBCTest.select(sql, "36", "94");
        while (rs.next()){
            String subjectname = rs.getString("subjectname");
            System.out.print(subjectname);
            String studentId = rs.getString("studentId");
            System.out.println(studentId);
        }
        JDBCTest.closeAll();
    }
}
